import org.junit.Test;
import pojo.User;

import java.util.concurrent.BlockingDeque;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Predicate;


public class MyTest {

    @Test
    public void test2(){
        //获得cpu的核数
        System.out.println(Runtime.getRuntime().availableProcessors());
        System.out.println(Thread.currentThread().getName());
    }

    @Test
    public void test(){
        final User user = new User(1,"me");
        //user = new User(2,"jjj");
        //final 关键字主要是让这个引用不能指向其他对象，被指向的对象可以进行改变
        user.setId(3);
        System.out.println(user);
    }

    @Test
    public void test1(){
        Predicate<String> predicate = str -> str != null;
    }
}
